package com.jianz.campus_markets.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jianz.campus_markets.domain.ResponseResult;
import com.jianz.campus_markets.domain.dto.ProductDto;
import com.jianz.campus_markets.domain.entity.Product;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jianz
 * @since 2023-11-22
 */
public interface ProductService extends IService<Product> {

    ResponseResult productSearch(String condition);

    ResponseResult addProduct(ProductDto productDto);

    ResponseResult getUnauditedProduct();

    ResponseResult getFailedProduct();

    ResponseResult getPassProduct();

    ResponseResult getPassProductById(int id);

    ResponseResult deleteProduct(int productId);

    ResponseResult updateProduct(Product product);

    ResponseResult getAllProduct();

    ResponseResult getProductInfo(int userid);
}
